Credits David & OGC

Call this when your alive and your entity's are updated

Code:


void BloodyPiss()
{
   vec3_t vecEnd, up, right, forward, EntViewOrg,PredOrg, playerAngles;
   pmtrace_t tr;

   VectorCopy(vPlayers[gAimbot.target].getEnt()->origin,PredOrg);

   playerAngles[0]=0;
   playerAngles[1]=vPlayers[gAimbot.target].getEnt()->angles[1];
   playerAngles[2]=0;
   gEngfuncs.pfnAngleVectors (playerAngles, forward, right, up);
   forward[2] = -forward[2];

   VectorCopy(PredOrg,EntViewOrg);

   EntViewOrg = EntViewOrg + forward;
   EntViewOrg = EntViewOrg + up;
    EntViewOrg = EntViewOrg + right;

   if (cvar.piss_blood_on_people)
   {
         gEngfuncs.pEfxAPI->R_BloodStream(me.pmEyePos,EntViewOrg,70,100);
   }
} 